2006-01-06 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable
+ to TRUE.
+ (gtk_text_tag_class_init): The default value for the direction
+ property is GTK_TEXT_DIR_NONE. Add notes about the initial values
+ of the font and language properties.
+
* gtk/gtktoolbutton.c (gtk_tool_button_class_init): Make clicked
an action signal. (#325782, Martyn Russell)
2006-01-06 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable
+ to TRUE.
+ (gtk_text_tag_class_init): The default value for the direction
+ property is GTK_TEXT_DIR_NONE. Add notes about the initial values
+ of the font and language properties.
+
* gtk/gtktoolbutton.c (gtk_tool_button_class_init): Make clicked
an action signal. (#325782, Martyn Russell)
P_("Text direction"),
P_("Text direction, e.g. right-to-left or left-to-right"),
GTK_TYPE_TEXT_DIRECTION,
- GTK_TEXT_DIR_LTR,
+ GTK_TEXT_DIR_NONE,
GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
TRUE,
GTK_PARAM_READWRITE));
+ /**
+ * GtkTextTag:font:
+ *
+ * Font description as string, e.g. \"Sans Italic 12\".
+ *
+ * Note that the initial value of this property depends on
+ * the internals of #PangoFontDescription.
+ */
g_object_class_install_property (object_class,
PROP_FONT,
g_param_spec_string ("font",
P_("Font description as a PangoFontDescription struct"),
PANGO_TYPE_FONT_DESCRIPTION,
GTK_PARAM_READWRITE));
-
g_object_class_install_property (object_class,
PROP_FAMILY,
GTK_TYPE_JUSTIFICATION,
GTK_JUSTIFY_LEFT,
GTK_PARAM_READWRITE));
-
+
+ /**
+ * GtkTextTag:language:
+ *
+ * The language this text is in, as an ISO code. Pango can use this as a
+ * hint when rendering the text. If not set, an appropriate default will be
+ * used.
+ *
+ * Note that the initial value of this property depends on the current
+ * locale, see also gtk_get_default_language().
+ */
g_object_class_install_property (object_class,
PROP_LANGUAGE,
g_param_spec_string ("language",
static void
gtk_text_tag_init (GtkTextTag *text_tag)
{
- /* 0 is basically a fine way to initialize everything in the
- entire struct */
-
text_tag->values = gtk_text_attributes_new ();
}
values->language = gtk_get_default_language ();
values->font_scale = 1.0;
-
+
+ values->editable = TRUE;
+
return values;
}